package net

import (
	"log"
	"net"
)

func LocalNetWorkCheck(ip, port string) bool {
	_, err := net.Dial("tcp", ip+":"+port)
	if err != nil {
		log.Println("本地网络异常:", err)
		return false
	}
	return true
}

